Solution:

idx = ['001', '002', '001', '003', '001']
print(f"Number of occurrences: {idx.count('001')}")